//
//  BaseCommonTableViewController.m
//  JQLive
//
//  Created by Bruce on 2019/11/26.
//  Copyright © 2019 JQLive. All rights reserved.
//

#import "BaseTableVC.h"
//友盟
//#import <UMAnalytics/MobClick.h>
@interface BaseTableVC ()

@end

@implementation BaseTableVC

- (void)viewDidLoad {
    [super viewDidLoad];
    if (@available(iOS 11.0, *)) {
        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }
    self.edgesForExtendedLayout = UIRectEdgeNone;
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if(!self.mobPagename||self.mobPagename.length<=0)
    {
        if (self.title||self.title.length<=0) {
            self.mobPagename = NSStringFromClass(self.class);
        }
        else
        {
            self.mobPagename = self.title;
        }
        
    }
//    [MobClick beginLogPageView:self.mobPagename]; //("Pagename"为页面名称，可自定义)

//    [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
//
//    [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
//    [MobClick endLogPageView:self.mobPagename];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
